function loadStrengthenMain() {
  $('.append').remove()
  $('#mainContent').append(template('t_strengthenMain'))
  exit()
  setActionDisplay(0, 0)
  setEquipments()
  initPackag()
  var part = ''

  $('.equipment').click(function() {
    part = $(this).attr('value')
    if (part && player.equipments[part]) {
      strengthenInfo(part)
      $('.right').css('display', 'block')
    }
  })


  $('.strengthen').click(function() {
    request.strengthen(part, function(res) {
      if (res.error === 0) {
        showMessage('强化装备成功')
        setEquipments()
        initPackag(function() {
          strengthenInfo(part)
        })
      } else if (res.error === 7) {
        showMessage('装备已满级, 无法再强化')
      } else {
        showMessage('强化装备失败')
      }
    })
  })

  function strengthenInfo(part) {

    $('.equipment').removeClass('select')
    $('.' + part).addClass('select')
    var equipment = player.equipments[part]

    getEquipmentInfo(equipment)
    if (equipment.strengthenLvl >= 5 || equipment.strengthenLvl >= equipment.lvl) {
      setActionDisplay(0, 1)
      $('.needCon').html('')
      $('.needMoney').html('')
      $('.lack').html('强化等级已满')
      return
    }
    if (equipment.quality <= 1) {
      setActionDisplay(0, 1)
      $('.needCon').html('')
      $('.needMoney').html('')
      $('.lack').html('普通品质装备无法强化')
      return
    }
    $('.addAttri').empty()
    var addAttri = equipment.addAttri
    for (var i in addAttri) {
      var plus = templateConfig.strengthen[440000][i]
      var totalPlus = templateConfig.strengthen[440000][i] * equipment.strengthenLvl + addAttri[i]
      $('.addAttri').append(attriName[i] + '  ' + totalPlus + '<span class="plus">↑' + plus + '</span><br>')
    }

    if (equipment.lvl <= 5) {
      var props = templateConfig.strengthen[440001][equipment.strengthenLvl]
    } else if (equipment.lvl > 5 && equipment.lvl <= 10) {
      var props = templateConfig.strengthen[440002][equipment.strengthenLvl]
    }


    var itemConfig = props[part]
    var needProp = itemConfig.needProp
    var html = ''
    var flag = 1
    for (var i in needProp) {
      var itemId = needProp[i][0]
      var itemNum = needProp[i][1]
      var name = propName[itemId]
      var num = getTotalNumByItemId(itemId)
      html += name + '(' + num + ')' + 'X' + itemNum + '<br>'
      if (num < itemNum) {
        flag = 0
      }
    }
    $('.needCon').html(html)
    if (itemConfig.needMoney) {
      $('.needMoney').html('银币(' + player.basicInfo.money + ')X' + itemConfig.needMoney * equipment.quality)
    }

    if (itemConfig.needGold) {
      $('.needMoney').html('金币(' + player.basicInfo.gold + ')X' + itemConfig.needGold * equipment.quality)
    }

    if (flag === 0) {
      setActionDisplay(0, 1)
      $('.lack').html('材料不足')
      return
    }
    if (player.basicInfo.money < itemConfig.needMoney * equipment.quality) {
      setActionDisplay(0, 1)
      $('.lack').html('银币不足')
      return
    }

    if (player.basicInfo.gold < itemConfig.needGold * equipment.quality) {
      setActionDisplay(0, 1)
      $('.lack').html('金币不足')
      return
    }
    setActionDisplay(1, 0)
  }

  function setActionDisplay(flag1, flag2) {
    if (flag1) {
      $('.strengthen').css('display', 'block')
    } else {
      $('.strengthen').css('display', 'none')
    }

    if (flag2) {
      $('.lack').css('display', 'block')
    } else {
      $('.lack').css('display', 'none')
    }
  }

}
